package com.example.course.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 课程评论视图对象
 *
 * @author Jasmine-drs
 * @date 2025-04-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "CommentVO", description = "课程评论视图对象")
public class CommentVO {

	@ApiModelProperty("主键")
	private Integer id;

	@ApiModelProperty("评论的学生id")
	private Integer studentId;

	@ApiModelProperty("学生姓名")
	private String studentName;

	@ApiModelProperty("课程id")
	private Integer courseId;

	@ApiModelProperty("课程名称")
	private String courseName;

	@ApiModelProperty("评论的内容")
	private String content;

	@ApiModelProperty("发表时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;
} 